#ifndef  SPI_CORE_H
#define  SPI_CORE_H

#define LED         (1ul << 7)
#define LED_INIT()  LPC_GPIO2->DIR  |=  LED                           /* 蜂鸣器初始化                 */
#define LEDOFF()    LPC_GPIO2->DATA |=  LED                           /* 蜂鸣器关                     */
#define LEDON()     LPC_GPIO2->DATA &= ~LED                           /* 蜂鸣器开                     */


volatile uint8_t    RcvFlag = 0;                                        /* 接收到新数据标志             */
volatile uint8_t    RcvData[16];                                        /* 接收到的数据                 */
volatile uint8_t    TestData = 0;
volatile uint8_t    Rcvlen;

void SSPPinInit(void);
void  SPI0Master_Init(void);
uint8_t SPI0_SendData(uint8_t data);



#endif  /*SPI_CORE_H*/
